Skip to main content

lockMoves

Type

property

Summary

Specifies whether the motion of objects moved by the move command is seen immediately or delayed.

Syntax

set the lockMoves to {true | false}

Description

Use the lockMoves property to synchronize object movements.

If the lockMoves property is set to true, when you use the move command to move an object around the screen, the movement does not become visible until the lockMoves is set to false. You can set the lockMoves property to true, start several objects moving, then set the lockMoves to false to begin the motion, as in the following example:

    on mouseUp
set the lockMoves to true
move button 1 to 300,200 in 2 seconds -- doesn\'t move yet
move field 2 to 0,0 in 2 seconds -- doesn\'t move yet
move graphic 3 to 0,400 in 2 seconds -- doesn\'t move yet
set the lockMoves to false -- all three objects start moving
end mouseUp

If the lockMoves is false, the movement takes place immediately.

Examples

set the lockMoves to true

command: unlock moves, reset, move

glossary: object, property, synchronize, handler, command, execute

Compatibility and Support

Introduced

LiveCode 1.0

OS

mac

windows

linux

ios

android

Platforms

desktop

server

mobile

Thank you for your feedback!

Was this page helpful?